<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Profit_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-profit_id" data-rule="required" data-source="profit/index" data-order-by="id" data-field="title" data-params='{"custom[main_type]":"{$main_type}","custom[main_id]":"{$main_id}"}' class="form-control selectpage" name="row[profit_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cash_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cash_id" data-rule="required" data-source="cash/index" data-order-by="id" data-field="title" data-params='{"custom[main_type]":"{$main_type}","custom[main_id]":"{$main_id}"}' class="form-control selectpage" name="row[cash_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flow_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-flow_id" data-rule="required" data-source="flow/index" data-order-by="id" data-field="title" data-params='{"custom[main_type]":"{$main_type}","custom[main_id]":"{$main_id}"}' class="form-control selectpage" name="row[flow_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stardard_id')}(多选):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stardard_id" data-multiple="true" data-source="stardard/index" data-order-by="id" data-field="title" data-params='{"custom[main_type]":"{$main_type}","custom[main_id]":"{$main_id}"}' class="form-control selectpage" name="row[stardard_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
